import time
from MTurkUtility import SERVICE_NAME
from MTurkUtility import SERVICE_VERSION
from MTurkUtility import ACCESS_KEY
from MTurkUtility import generate_timestamp
from MTurkUtility import generate_signature
from MTurkUtility import SECRET_KEY

class BaseParams:
    def __init__(self, operation=''):
        ts = generate_timestamp(time.gmtime())
        self.parameters = {'Service': SERVICE_NAME,
                           'Version': SERVICE_VERSION,
                           'AWSAccessKeyId': ACCESS_KEY,
                           'Timestamp': ts,
                           'Signature': generate_signature(SERVICE_NAME, operation, ts, SECRET_KEY),
                           'Operation': operation}


"""
ResponseGroup
A list of response groups

Type: String

Default: None
Yes
"""


if __name__ == "__main__":
    bp = BaseParams('TestOperation')
    print bp.parameters